package com.sunlee.common.service.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sunlee.common.service.dto.MarketingProductInfoDTO;
import com.sunlee.common.service.entity.MarketingProductMappingEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 营销商品表
 */
public interface MarketingProductMappingDao extends BaseMapper<MarketingProductMappingEntity> {
    IPage<MarketingProductInfoDTO> pageRelatedProduct(@Param("page") IPage<MarketingProductMappingEntity> page,
                                                      @Param("id") long id,
                                                      @Param("pId") Long pId,
                                                      @Param("title") String title,
                                                      @Param("type") int type
    );

    Boolean updateSort(@Param("id") Long id, @Param("sort") Integer sort);
}




